﻿using ProjectScheduling.models;
using SqlSugar;

namespace ProjectScheduling.daos
{
    public class RestDayDao : BaseDao<RestDay>
    {
        public readonly static RestDayDao Base = new();
        public List<int> Years()
        {
            return Db.Queryable<RestDay>().GroupBy(it => it.Day.Year).Select(it => it.Day.Year).ToList();
        }
    }
}
